package io.mvvm.controller;

import io.mvvm.client.ConsumerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConsumerController {

    @Resource
    private ConsumerClient consumerClient;

    @GetMapping("/get/{str}")
    public String echo(@PathVariable("str") String string){
        return consumerClient.echo(string);
    }

}
